package com.cetcs.kmga.dataManager.entity.dataManager.vo;

/**
 * 数据监测对象
 */
public class TodayNumberVo {

    //今日数据
    private double todayNum;

    //平均数据
    private double avgNum;

    //今日 对比 平均 的变化状态:>0上升,<0下降
    private int state;

    public void resetNumState(){
        state = todayNum == avgNum ? 0 : (todayNum > avgNum ?1 :-1);
    }

    public double getTodayNum() {
        return todayNum;
    }

    public void setTodayNum(double todayNum) {
        this.todayNum = todayNum;
    }

    public double getAvgNum() {
        return avgNum;
    }

    public void setAvgNum(double avgNum) {
        this.avgNum = avgNum;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
